Synchronize hash lookup calls and add additional Java layer for profiling