prefix subphrase optimization done for in-memory pt. Need to delete objects also