Optimized calculating collizions