Optimise Check Memory speed