searches cache for rotations and mirrors