MDL-43049 accesslib: Fix typo in memory optimization code