performance improvement in ExistsPlugin