HHH-7402 - Improve performance of named query registry