optimize get entries