Improved getIdByParameters methods