Small perf fix for AGAST