Performance or locking issue with rlm_detail