Try to minimize work with DB and dom