How to reduce EMR maintenance costs