BoostArray custom functions cached