A note on the optimal replacement policy